CertificateManager

public class CertificateManager extends AbstractManager<Service>

Provides methods for certificate management in android's system keystore, without invoking any UI elements or requiring any user intervention.

Functions

Link copied to clipboard
Returns an instance of CertificateManager
Link copied to clipboard
@MinApiLevel(value = 4)
public void installCertificates(CertUsageType usageType, Array<byte> pkcs12Data, String password, String alias)
Allows user to install certs and private key in Ethernet keystore from PKCS12 encoded data.
@MinApiLevel(value = 4)
public void installCertificates(CertUsageType usageType, String pemUserCert, String pemPrivKey, String pemCaCert, String alias)
Allows user to install PEM encoded certs and private key in keystore determined by CertUsageType.
Link copied to clipboard
@MinApiLevel(value = 4)
public List<String> listInstalledCertificates(CertUsageType usageType, CertType certType)
Returns the alias names of the installed certificates specified by the types passed.
Link copied to clipboard
@MinApiLevel(value = 4)
public void uninstallCertificates(CertUsageType usageType, String alias)
Uninstalls the certificates specified by the usage type and alias name.